<?php
namespace app\index\validate;
use think\Validate;
class Websitelink extends Validate{
	protected $rule=[
		'id'=>'require|number',
		'website_name'=>'require|max:20',
		'remark'=>'max:225',
		'href'=>'max:500'
		
	];
	protected $message=[
		'id.require'=>'编号必须为数字',
		'website_name.require'=>'栏目名称不能超过20个字符'
	];
	protected $scene=[
		'add'=>['remark','href','website_name'],
		'edit'=>['id','website_name','remark'],
	];
}
?>